package com.etheart.framework.core.event;

import com.etheart.framework.core.context.ApplicationContextHolder;

public class LocalEvent extends Event{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public LocalEvent(Object source) {
		super(source);
	}

	@Override
	public void fire() {
		//Publish the event to the current application context, so that any class that implements
		//the ApplicationListener may receive the event
		ApplicationContextHolder.getApplicationContext().publishEvent(this);
	}

}
